package com.service.impl;

import java.util.List;

import com.dao.ComboDao;
import com.enetiy.Area;
import com.enetiy.Areausable;
import com.enetiy.Comboinfo;
import com.enetiy.Comborecord;
import com.service.ComboService;

public class ComboServiceImpl implements ComboService {
private ComboDao comboDao;
	@Override
	public List<Comboinfo> selectUserComboList(int userid) throws Exception {
		return comboDao.selectUserComboList(userid);
	}

	@Override
	public List<Comboinfo> selectUserComboList(int userid, int status)
			throws Exception {
		return comboDao.selectUserComboList(userid, status);
	}

	@Override
	public Comboinfo selectUserCombo(int id) throws Exception {
		return comboDao.selectUserCombo(id);
	}

	@Override
	public void insertUserCombo(Comboinfo comboinfo) throws Exception {
		comboDao.insertUserCombo(comboinfo);
	}

	@Override
	public void deleteUserCombo(Comboinfo comboinfo) throws Exception {
		comboDao.deleteUserCombo(comboinfo);

	}

	public void setComboDao(ComboDao comboDao) {
		this.comboDao = comboDao;
	}

	@Override
	public void insertUserComboRecord(Comborecord comborecord) throws Exception {
		this.comboDao.insertUserComboRecord(comborecord);
	}

	@Override
	public void updateUserCombo(Comboinfo comboinfo) throws Exception {
		this.comboDao.updateUserCombo(comboinfo);
		
	}

	@Override
	public Comboinfo selCombo(int userid, int comboid) throws Exception {
		return comboDao.selCombo(userid, comboid);
	}

}
